package com.wjj.demo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import uk.co.senab.photoview.PhotoView;

/**
 * Created by Wjj on 16/11/15.
 */
public class PhotoViewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_photoview);

        PhotoView photoView = (PhotoView) findViewById(R.id.photoView);
        photoView.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_name));
//        photoView.setImageURI(Uri.parse("http://f2.dn.anqu.com/down/YjFkMw==/allimg/1301/60-130130114620.jpg"));
    }
}
